<pw:html>
    <pw:head>
        <title>SISCO - Modificar usuario</title>

        <pw:component name="pw_include_view" data-show="true" data-src="head_scripts.html"></pw:component>
    </pw:head>

    <pw:body>

        <pw:component name="pw_include_view" data-show="true" data-src="header.html"></pw:component>

        <div class="container">
            <pw:component name="pw_include_view" data-show="true" data-src="messages.html"></pw:component>
            
            <pw:component name="pw_div" data-show="true" data-class="row" data-id="">
                <pw:container>

                    <pw:component name="pw_div" data-show="true" data-class="span3" data-id="">
                        <pw:container>
                            <pw:component name="pw_include_view" data-show="true" data-src="usuario_sidebar.html"></pw:component>
                        </pw:container>
                    </pw:component>

                    <pw:component name="pw_div" data-show="true" data-class="span9" data-id="">

                        <pw:container>
                            <pw:component name="pw_form" data-show="true" data-class="" data-id="" data-action="" data-enctype="multipart/form-data" data-method="post">
                                <pw:container>
                                    <pw:component name="pw_text" data-show="true" data-content="Modificar usuario" data-tag="legend" data-free=""></pw:component>
                                    <pw:component name='pw_labeled_input' data-show='true' data-name='username' data-id='username' data-label='Nombre de usuario' data-type='text' data-value='{$usuario->username}' data-placeholder='' data-free=''></pw:component>
                                    <pw:component name='pw_labeled_input' data-show='true' data-name='password' data-id='password' data-label='Contraseña' data-type='text' data-value='{$usuario->password}' data-placeholder='' data-free=''></pw:component>
                                    <pw:component name='pw_labeled_input' data-show='true' data-name='nombre' data-id='nombre' data-label='Nombre Real' data-type='text' data-value='{$usuario->nombre}' data-placeholder='' data-free=''></pw:component>
                                    
                                    
                                    <pw:component name="pw_checkbox_group" data-show="true" data-div_class="pw-checkbox-group" data-tag="legend" data-group_title="Grupos a los que pertenece" data-from="$grupos" data-item="grupo" data-input_name="grupos" data-input_value="{$grupo->id}" data-checked_condition="$usuario->grupo->where('id',$grupo->id)->count()" data-label="{$grupo->nombre}"></pw:component>
                                    
                                    <pw:component name="pw_div" data-show="true" data-class="form-actions" data-id="">
                                        <pw:container>
                                            <pw:component name="pw_button" data-show="true" data-id="" data-name="" data-caption="Modificar" data-free="class='btn btn-primary'" data-type="submit"></pw:component>
                                            <pw:component name="pw_link" data-show="true" data-id="" data-name="" data-caption="Eliminar" data-free="class='btn btn-danger'" data-url="usuarios/delete/{$usuario->id}/"></pw:component>
                                        </pw:container>
                                    </pw:component> <!-- .form-actions -->

                                </pw:container>
                            </pw:component> <!-- form -->

                        </pw:container>
                    </pw:component> <!-- .span9 -->

                </pw:container>
            </pw:component> <!-- .row -->

            <pw:component name="pw_include_view" data-show="true" data-src="footer.html"></pw:component>
        </div><!-- .container -->

        <pw:component name="pw_include_view" data-show="true" data-src="footer_scripts.html"></pw:component>
        
    </pw:body>
</pw:html>